﻿namespace ScrumSprintMonitor.UI.Wpf.Views.MonitorWindow
{
	#region #using Directives

	using System.Windows;
	using System.Windows.Controls;

	#endregion

	/// <summary>
	/// Interaction logic for SprintProgress.xaml
	/// </summary>
	public partial class SprintProgress : UserControl
	{
		/// <summary>
		/// Using a DependencyProperty as the backing store for Orientation.  This enables animation, styling, binding, etc...
		/// </summary>
		public static readonly DependencyProperty OrientationProperty = DependencyProperty.Register("Orientation", typeof(Orientation),
		                                                                                            typeof(SprintProgress),
		                                                                                            new UIPropertyMetadata(Orientation.Horizontal));

		/// <summary>
		/// Using a DependencyProperty as the backing store for Position.  This enables animation, styling, binding, etc...
		/// </summary>
		public static readonly DependencyProperty PositionProperty = DependencyProperty.Register("Position", typeof(double), typeof(SprintProgress),
		                                                                                         new UIPropertyMetadata(0.0));


		public SprintProgress()
		{
			InitializeComponent();
		}

		public Orientation Orientation
		{
			get { return (Orientation) GetValue(OrientationProperty); }
			set { SetValue(OrientationProperty, value); }
		}

		public double Position
		{
			get { return (double) GetValue(PositionProperty); }
			set { SetValue(PositionProperty, value); }
		}
	}
}